package com.uidt.project.ptsj.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.uidt.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uidt.framework.aspectj.lang.annotation.Excel;

/**
 * 巡检信息对象 ptsj_inspection
 * 
 * @author uidt
 * @date 2024-08-15
 */
@Data
public class Inspection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 房源码 */
    @Excel(name = "房源码")
    private String roomId;

    /** 房源名称 */
    @Excel(name = "房源名称")
    private String roomName;

    /** 房源名称 */
    @Excel(name = "场所名称")
    private String placeName;


    /** 房间问题 */
    @Excel(name = "房间问题")
    private String roomProblem;

    /** 巡检部门 */
    @Excel(name = "巡检部门")
    private String department;

    /** 巡检单位 */
    @Excel(name = "巡检单位")
    private String unit;

    /** 巡检人员 */
    @Excel(name = "巡检人员")
    private String worker;

    /** 巡检时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @Excel(name = "巡检时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:SS")
    private Date inspectionTime;

    /** 挂牌类型 */
    @Excel(name = "挂牌类型")
    private String cardType;

    /** 挂牌细则 */
    @Excel(name = "挂牌细则")
    private String cardItem;

    /** 整改开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "整改开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rectStartTime;

    /** 整改结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "整改结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rectEndTime;

    /** 挂牌状态 */
    @Excel(name = "挂牌状态")
    private String cardStatus;


    /** 挂牌说明 */
    private String cardBz;
    /*
    * 整改情况，0待核查，1已整改、2未整改、
    * */
    private String rectQk;

    private int score;

    private String placeCode;

    private String deptId;

    // 创建部门机构代码
    private String deptCode;

    /** 删除标记 */
    private String delFlag;

    /*
    * 巡检附件列表
    * */
    private List<PtsjFile> inspFiles;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    public String getPlaceCode() {
        return placeCode;
    }

    public void setPlaceCode(String placeCode) {
        this.placeCode = placeCode;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public List<PtsjFile> getInspFiles() {
        return inspFiles;
    }

    public String getCardBz() {
        return cardBz;
    }

    public void setCardBz(String cardBz) {
        this.cardBz = cardBz;
    }

    public void setInspFiles(List<PtsjFile> inspFiles) {
        this.inspFiles = inspFiles;
    }

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:SS")
    private Date createdTime;

    public String getRectQk() {
        return rectQk;
    }

    public void setRectQk(String rectQk) {
        this.rectQk = rectQk;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoomId(String roomId) 
    {
        this.roomId = roomId;
    }

    public String getRoomId() 
    {
        return roomId;
    }
    public void setRoomName(String roomName) 
    {
        this.roomName = roomName;
    }

    public String getRoomName() 
    {
        return roomName;
    }
    public void setRoomProblem(String roomProblem) 
    {
        this.roomProblem = roomProblem;
    }

    public String getRoomProblem() 
    {
        return roomProblem;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setWorker(String worker) 
    {
        this.worker = worker;
    }

    public String getWorker() 
    {
        return worker;
    }
    public void setInspectionTime(Date inspectionTime) 
    {
        this.inspectionTime = inspectionTime;
    }

    public Date getInspectionTime() 
    {
        return inspectionTime;
    }
    public void setCardType(String cardType) 
    {
        this.cardType = cardType;
    }

    public String getCardType() 
    {
        return cardType;
    }
    public void setCardItem(String cardItem) 
    {
        this.cardItem = cardItem;
    }

    public String getCardItem() 
    {
        return cardItem;
    }
    public void setRectStartTime(Date rectStartTime) 
    {
        this.rectStartTime = rectStartTime;
    }

    public Date getRectStartTime() 
    {
        return rectStartTime;
    }
    public void setRectEndTime(Date rectEndTime) 
    {
        this.rectEndTime = rectEndTime;
    }

    public Date getRectEndTime() 
    {
        return rectEndTime;
    }
    public void setCardStatus(String cardStatus)
    {
        this.cardStatus = cardStatus;
    }

    public String getCardStatus()
    {
        return cardStatus;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomId", getRoomId())
            .append("roomName", getRoomName())
            .append("roomProblem", getRoomProblem())
            .append("department", getDepartment())
            .append("unit", getUnit())
            .append("worker", getWorker())
            .append("inspectionTime", getInspectionTime())
            .append("cardType", getCardType())
            .append("cardItem", getCardItem())
            .append("rectStartTime", getRectStartTime())
            .append("rectEndTime", getRectEndTime())
            .append("cardStatus", getCardStatus())
            .append("delFlag", getDelFlag())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getPlaceName() {
        return placeName;
    }

    public void setPlaceName(String placeName) {
        this.placeName = placeName;
    }
}
